<template>
  <div class="footer_guide">
    <a class="guide_item" :class="{on:'/report' == $route.path}" @click="goTo('/report')">
      <span class="item_icon">
        <i class="iconfont icon-dianpuzhuye"></i>
      </span>
      <span>行情线报</span>
    </a>

    <a class="guide_item" :class="{on:'/dynamics' == $route.path}" @click="goTo('/dynamics')">
      <span class="item_icon">
        <i class="iconfont icon-xin1"></i>
      </span>
      <span>关注动态</span>
    </a>
    <a class="guide_item" :class="{on:'/shop' == $route.path}" @click="goTo('/shop')">
      <span class="item_icon">
        <i class="iconfont icon-shangcheng2"></i>
      </span>
      <span>购码商城</span>
    </a>
    <a class="guide_item" :class="{on:'/profile' == $route.path}" @click="goTo('/profile')">
      <span class="item_icon">
        <i class="iconfont icon-wode"></i>
      </span>
      <span>我的</span>
    </a>
  </div>
</template>

<script>
export default {
  methods: {
    goTo(path) {
      this.$router.replace(path);
    }
  }
};
</script>
<style lang="scss" scoped>
@import "../../common/sass/mixin.scss";
.footer_guide {
  @include top-border-1px(#e4e4e4);
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  width: 100%;
  height: 50px;
  display: flex;
  .guide_item {
    display: flex;
    flex: 1;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    color: #999999;
    &.on {
      color: rgb(14, 122, 254);
    }
    .item_icon {
      @include wh(100%, 100%);
    }
    span {
      font-size: 12px;
      margin-top: 2px;
      margin-bottom: 2px;
      .iconfont {
        @include wh(100%, 100%);
        font-size: 22px;
      }
    }
  }
}
</style>
